package java51.homew0614;

import java.net.ServerSocket;
import java.net.Socket;

public class WeatherServer {

	public static void main(String[] args) {

		try {
			ServerSocket se = new ServerSocket(2333);
			System.out.println("启动服务器---监听端口2333");
			while (true) {
				Socket sc = se.accept();
				new ChoiceThread(sc).start();
			}
		} catch (Exception e) {

			e.printStackTrace();
		}

	}

}
